﻿using System;
using System.Collections.Specialized;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Routing;
using Vit.Web.Models;

namespace Vit.Web.Mvc.DataAnnotations
{
    [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = true)]
    public class OperationAttribute : Attribute
    {
        public OperationAttribute(string viewName, string operation, int order)
        {
            ShowOnView = viewName;
            OperationName = operation;
            Order = order;
        }

        public int Order { get; set; }
        public string OperationName { get; set; }
        public string LinkUrlPattern { get; set; }
        public string CssClass { get; set; }
        public string ImageUrl { get; set; }
        public string HtmlAttributes { get; set; }
        public string PermissionPattern { get; set; }
        public string ShowOnView { get; set; }
    }
}
